﻿using System;
using System.Data.OleDb;
using System.Windows.Forms;

namespace Joel.ImpresionesJL.AccesoDatos
{
    public abstract class ServicioDatosBase
    {
        #region Constructores

        public ServicioDatosBase()
        {
            //conexion = new OleDbConnection(Properties.Settings.Default.CadenaConexion);
            conexion = new OleDbConnection(cadenaConexion);
        }

        #endregion

        #region Atributos

        private String cadenaConexion = String.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source='{0}Joel.ImpresionesJL\Joel.ImpresionesJL.accdb'", Application.StartupPath.ToString());
        internal OleDbConnection conexion;

        #endregion

        #region Propiedades

        public OleDbConnection Conexion
        {
            get { return conexion; }
        }

        #endregion
    }
}
